﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaintenanceService.Common.Dal
{
    public interface IDalRepository
    {
        #region Pending Tasks
        int GetCountPendingTasks();
        IList<PendingTask> GetPendingTasks();
        PendingTask GetNextTaskToExecute(bool start);
        void EndTask(Guid taskId, bool executed);
        void SaveTaskInfo(Guid taskId, string info);
        void AddTask(PendingTask task, bool checkExistence);
        bool ExistTask(PendingTask task);

        #endregion

        #region Executed Tasks
      
        #endregion

        #region Additional Tasks
        void ExecuteAdditionalTask(Guid additionalTaskId);
        IList<AdditionalTask> GetAdditionalTasks();
        void AddAdditionalTask(AdditionalTask task);
        
        #endregion

    }
}
